﻿<%@ Page Language="C#" MasterPageFile="../../MasterPage.Master" AutoEventWireup="true" CodeBehind="ICM_Master_Committee_Mapping.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Form.ICM_Master_Committee_Mapping" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register TagPrefix="custom" Namespace="KPIS.Customs.UI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function RowDbClick(sender, eventArgs) {
                var hiddenElement = document.getElementById("<%= hdSeq.ClientID %>");
                hiddenElement.value = eventArgs.getDataKeyValue("Seq");
                $find("<%= RadManager1.ClientID %>").ajaxRequest(hiddenElement.value);
            }

            function SourceClick(seq) {
                var hiddenElement = document.getElementById("<%= hdMethod.ClientID %>");
                hiddenElement.value = seq;
                $find("<%= RadManager1.ClientID %>").ajaxRequest('Method');
            }

            function SeqClick(seq) {
                var hiddenElement = document.getElementById("<%= hdSeq.ClientID %>");
                hiddenElement.value = seq;
                $find("<%= RadManager1.ClientID %>").ajaxRequest(seq);
            }

            function onTextChangeGeneral(sender) {
                if (sender.get_value() == "") {
                    sender.set_text("");
                }
            }

            function validateCBL(src, args) {
                var retVal = false;
                var cnt = '<%=cblPosition.Items.Count%>';
                var cblid = '<%=cblPosition.ClientID%>';

                for (i = 0; i < cnt; i++) {
                    if (document.getElementById(cblid + '_' + i).checked) {
                        retVal = true;
                        break;
                    }
                }
                args.IsValid = retVal;
            }

            function ExpandPersonal(sender, Args) {
                if (!sender._loaded) {
                    $find("<%=RadAjaxPanel1.ClientID %>").ajaxRequest();
                    sender._loaded = true;
                }
            }

            function cancelUndock(sender, Args) {
                Args.set_cancel(true);
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" Skin="Outlook">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager runat="server" ID="RadManager1" OnAjaxRequest="RadManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="panelAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAll" />
                    <telerik:AjaxUpdatedControl ControlID="panelMethod" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="panelSource">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAll" />
                    <telerik:AjaxUpdatedControl ControlID="panelMethod" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAll" />
                    <telerik:AjaxUpdatedControl ControlID="panelAmount" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdbAmountNone">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAmount" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdbAmountLess">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAmount" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdbAmountBetween">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAmount" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdbAmountMore">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelAmount" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
    <asp:Panel ID="panelHidden" runat="server">
        <asp:HiddenField ID="hdMethod" runat="server" Value="" />
        <asp:HiddenField ID="hdSeq" runat="server" Value="" />
    </asp:Panel>
    
    <telerik:RadSplitter id="RadSplitter1" runat="server" height="460" width="1000" Skin="Office2007">
        <telerik:RadPane id="LeftPane" runat="server" width="22" Scrolling="None" Locked="true">
            <telerik:RadSlidingZone id="SlidingZone1" runat="server" width="22" ClickToOpen="true" DockedPaneId="PaneSearch">
                <telerik:RadSlidingPane id="PanePersonal" title="ข้อมูลส่วนตัว" runat="server" width="265" IconUrl="../Image/General/user.gif" EnableDock="false" OnClientBeforeExpand="ExpandPersonal">
                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" OnAjaxRequest="OnAjaxRequest">
                    </telerik:RadAjaxPanel>
                </telerik:RadSlidingPane>
                <telerik:RadSlidingPane id="PaneSearch" title="โครงสร้าง" runat="server" width="345" IconUrl="../Image/Tree/treeview.gif" OnClientBeforeUndock="cancelUndock" Scrolling="None">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td></td>
                        </tr>
                        <tr>
                            <td>
                                <div class="bigModuleLeftTreeTab">
                                    <div class="bigModuleBottomLeftTreeTab">
                                        <div class="header-grid">
                                            <asp:Label ID="lblHeaderSource" runat="server" Text="วิธีการจัดหาพัสดุ"></asp:Label>
                                        </div>
                                        <asp:Panel CssClass="panelTree" ID="PanelMethod" runat="server" ScrollBars="Vertical">
                                            <div align="center">
                                                <telerik:RadGrid CssClass="RadGrid" ID="GridMethod" runat="server" AutoGenerateColumns="False" AllowPaging="false"
                                                EnableAJAX="True" GridLines="None" ShowStatusBar="false" Skin="Hay" Width="95%" ShowHeader="false">
                                                    <MasterTableView GroupLoadMode="Client" AllowMultiColumnSorting="true" DataKeyNames="Seq" ClientDataKeyNames="Seq" Width="100%">
                                                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                        <GroupHeaderItemStyle HorizontalAlign="Left" />
                                                        <Columns>
                                                            <telerik:GridBoundColumn DataField="InfoRule.Name"
                                                                GroupByExpression="InfoRule.Name Group By InfoRule.Seq" Groupable="true" Visible="false"
                                                                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                FilterControlWidth="100%" HeaderText="ระเบียบ" 
                                                                UniqueName="InfoRule.Name">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="InfoMethod.InfoType.Name"
                                                                GroupByExpression="InfoMethod.InfoType.Name Group By InfoMethod.InfoType.Seq" Groupable="true" Visible="false"
                                                                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                FilterControlWidth="100%" HeaderText="ประเภทการจัดหา" 
                                                                UniqueName="InfoMethod.InfoType.Name">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridTemplateColumn DataField="Name" 
                                                                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                FilterControlWidth="100%" UniqueName="Name">
                                                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <ItemTemplate>
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick='<%# Eval("Seq","return SourceClick( {0} );") %>' Text='<%# Eval("InfoMethod.Name") %>'></asp:HyperLink>
                                                                </ItemTemplate>
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridBoundColumn DataField="Amount_show" 
                                                                AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                FilterControlWidth="100%" HeaderText="วงเงินจัดหา" 
                                                                UniqueName="Amount_show">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="Seq" 
                                                                HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                Visible="false">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="InfoRule.Seq" 
                                                                HeaderStyle-HorizontalAlign="Center" UniqueName="InfoRule.Seq" 
                                                                Visible="false">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="InfoMethod.InfoType.Seq" 
                                                                HeaderStyle-HorizontalAlign="Center" UniqueName="InfoMethod.InfoType.Seq" 
                                                                Visible="false">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                            </telerik:GridBoundColumn>
                                                        </Columns>
                                                    </MasterTableView>
                                                    <ClientSettings EnableRowHoverStyle="true" >
                                                        <Selecting AllowRowSelect="True" />
                                                    </ClientSettings>
                                                </telerik:RadGrid>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </telerik:RadSlidingPane>
            </telerik:RadSlidingZone>
        </telerik:RadPane>
        <telerik:RadSplitBar id="RadSplitBar1" runat="server"></telerik:RadSplitBar>
        <telerik:RadPane id="PaneData" runat="server" Scrolling="None">
            <asp:Panel ID="panelAll" runat="server">
                <asp:Panel ID="panelBlank" runat="server">
                    <div class="bigModuleBlankTree" align="center">
                        <div class="bigModuleBottomBlankTree">
                            <table width="100%" class="panelBlank">
                                <tr>
                                    <td valign="middle" align="center">
                                        <asp:Label CssClass="font-label" ID="lblBlank" runat="server" Text=".. แสดงข้อมูลหลังจากเลือกวิธีการจัดหาพัสดุ .." ForeColor="Gray" Font-Italic="true"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </asp:Panel>
                <asp:Panel ID="panelCommand" runat="server">
                    <div class="bigModuleRight">
                        <div class="bigModuleBottomRight">
                            <table cellpadding="0" cellspacing="0">
                                <tr class="command-list">
                                    <td class="command-item" style="border: none">
                                        <asp:LinkButton ID="ShowGrid" runat="server" CssClass="LinkButton" onclick="ShowGrid_Click" CausesValidation="false">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/table.gif" />&nbsp;&nbsp;แสดงข้อมูลทั้งหมด
                                        </asp:LinkButton>                        
                                    </td>
                                    <td class="command-item">
                                        <asp:LinkButton ID="AddNew" runat="server" CssClass="LinkButton" onclick="AddNew_Click">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                        </asp:LinkButton>
                                    </td>
                                    <td class="command-item">
                                        <asp:LinkButton ID="Delete" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')" OnClick="Delete_Click">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล
                                        </asp:LinkButton>
                                    </td>
                                    <td class="command-item">
                                        <asp:LinkButton ID="AddNewSave" runat="server" CssClass="LinkButton" Visible="false" onclick="AddNewSave_Click">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                        </asp:LinkButton>
                                    </td>
                                    <td class="command-item">
                                        <asp:LinkButton ID="Help" runat="server" CssClass="LinkButton" Visible="false" CausesValidation="false">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Tree/help3.gif" />&nbsp;&nbsp;ช่วยเหลือ
                                        </asp:LinkButton>
                                    </td>
                                    <td class="command-item">
                                        <asp:LinkButton ID="Recycle" runat="server" CssClass="LinkButton" Visible="true" 
                                            OnClientClick="javascript:radopen('../Delete_Form/ICM_Master_Resource_Type.aspx', 'WindowDelete');">
                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Refresh.gif" width="14" height="14"/>&nbsp;&nbsp;กู้ข้อมูล
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div> 
                    <telerik:RadToolTip runat="server" ID="RadToolTip1" Width="300px" Height="70px" TargetControlID="Help" ShowEvent="OnClick"
                    IsClientID="false" Animation="Fade" HideEvent="LeaveToolTip" Position="BottomCenter" Skin="Outlook">
                        <table width="100%">
                            <tr class="table-outlook-header">
                                <td>
                                    <asp:Label ID="lblTipHeader" runat="server" Text="ความสำคัญ" Font-Size="Small" ForeColor="White" Font-Bold="true"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Detail" runat="server" Font-Size="Small" 
                                    Text="<b>วิธีการจัดหาพัสดุ</b> ตามระเบียบพัสดุของสำนักนายกรัฐมนตรีหรือระเบียบอื่นๆ(ถ้ามี) โดยในแต่ละแหล่งเงินของการจัดหานั้นจะใช้วงเงินในแต่ละวิธีเท่ากันหรือต่างกันก็ได้"> </asp:Label>
                                </td>
                            </tr>
                        </table>
                    </telerik:RadToolTip>   
                </asp:Panel>
                <asp:Panel ID="panelData" runat="server">                                                            
                    <div class="bigModuleRight">
                        <div class="bigModuleBottomRight">
                            <asp:Panel ID="panelHeaderList" runat="server">
                                <div class="header-grid">
                                    <asp:Label ID="lblHeaderList" runat="server" Text="คณะกรรมการที่เกี่ยวข้อง"></asp:Label>
                                </div>
                            </asp:Panel>
                            <asp:Panel CssClass="panelList" runat="server" ID="panelList" ScrollBars="Auto" Visible="false">
                                <ul class="formList" id="Ul1">  
                                    <div class="formList-detail">
                                        <table>
                                            <tr>
                                                <td width = "130px" valign="top">
                                                    วงเงินการจัดหา :
                                                </td>
                                                <td>
                                                    <asp:Panel ID="panelAmount" runat="server">
                                                        <table cellpadding="0" cellspacing="0" width="100%">
                                                            <tr>
                                                                <td>
                                                                    <asp:RadioButton ID="rdbAmountNone" runat="server" Text="ไม่กำหนด" 
                                                                        GroupName="Amount" AutoPostBack="true" Checked="true" 
                                                                        OnCheckedChanged="rdbAmountNone_CheckedChanged"></asp:RadioButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:RadioButton ID="rdbAmountLess" runat="server" Text="ไม่เกิน" 
                                                                        GroupName="Amount" AutoPostBack="true" 
                                                                        OnCheckedChanged="rdbAmountLess_CheckedChanged"></asp:RadioButton>
                                                                    <telerik:RadNumericTextBox ID="txtLessMinAmount" Runat="server" Width="100px" Skin="Outlook"></telerik:RadNumericTextBox>
                                                                    <label runat="server" ID="Label1">บาท</label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:RadioButton ID="rdbAmountBetween" runat="server" Text="ตั้งแต่" 
                                                                        GroupName="Amount" AutoPostBack="true" 
                                                                        OnCheckedChanged="rdbAmountBetween_CheckedChanged"></asp:RadioButton>
                                                                    <telerik:RadNumericTextBox ID="txtBetweenMinAmount" Runat="server" Width="100px" Skin="Outlook"></telerik:RadNumericTextBox>
                                                                    <label runat="server" ID="Label2">บาท ถึง</label>
                                                                    <telerik:RadNumericTextBox ID="txtBetweenMaxAmount" Runat="server" Width="100px" Skin="Outlook"></telerik:RadNumericTextBox>
                                                                    <label runat="server" ID="Label3">บาท</label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:RadioButton ID="rdbAmountMore" runat="server" Text="ตั้งแต่" 
                                                                        GroupName="Amount" AutoPostBack="true" 
                                                                        OnCheckedChanged="rdbAmountMore_CheckedChanged"></asp:RadioButton>
                                                                    <telerik:RadNumericTextBox ID="txtMoreMaxAmount" Runat="server" Width="100px" Skin="Outlook"></telerik:RadNumericTextBox>
                                                                    <label runat="server" ID="Label4">บาทขึ้นไป</label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>       
                                    <div class="formList-detail">
                                        <table>
                                            <tr>
                                                <td width = "130px" valign="top">
                                                    หน้าที่ในคณะกรรมการ :
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox CssClass="RadComboBox" runat="server" ID="cbFunction" AllowCustomText="true" ShowDropDownOnTextboxClick="true"
                                                        Filter="Contains" DataTextField="Name" DataValueField="Seq" Height="150px" Width="250px"
                                                        EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                        OnClientTextChange="onTextChangeGeneral">
                                                    </telerik:RadComboBox>
                                                    &nbsp;<label id="Label5" runat="server"><font color="red">*</font></label>
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:RequiredFieldValidator ID="ValcbFunction" runat="server" ControlToValidate="cbFunction" SetFocusOnError="True" Display="Dynamic" ErrorMessage="* กรุณาระบุหน้าที่ในคณะกรรมการ *"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </div> 
                                    <div class="formList-detail">
                                        <table>
                                            <tr>
                                                <td width = "130px" valign="top">
                                                    ตำแหน่งในคณะกรรมการ :
                                                </td>
                                                <td valign="top">
                                                    <table>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:CheckBoxList ID="cblPosition" runat="server" DataTextField="Name" DataValueField="Seq" RepeatDirection="Vertical" CellSpacing="0" CellPadding="2">
                                                                </asp:CheckBoxList>
                                                            </td> 
                                                            <td valign="top">
                                                                <asp:Panel ID="panelNumPosition" runat="server">
                                                                    <asp:Table id="tableNumPosition" runat="server">
                                                                    </asp:Table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                 <asp:CustomValidator ID="ValPosition" runat="server" ErrorMessage="กรุณาระบุตำแหน่งในคณะกรรมการ" Display="Dynamic" ClientValidationFunction="validateCBL"></asp:CustomValidator>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </div> 
                                </ul>
                            </asp:Panel>
                            <asp:Panel CssClass="panelGrid" ID="panelGrid" runat="server" ScrollBars="Auto" Visible="true">
                                <div align="center">
                                    <telerik:RadGrid CssClass="RadGrid" ID="Grid" runat="server" AllowFilteringByColumn="true"
                                    AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True"
                                    AutoGenerateColumns="False" EnableAJAX="True" PageSize="8" 
                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                    OnItemCommand="Grid_ItemCommand">
                                        <MasterTableView GroupLoadMode="Client" AllowMultiColumnSorting="true" DataKeyNames="Seq" ClientDataKeyNames="Seq" Width="100%">
                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                            <GroupHeaderItemStyle HorizontalAlign="Left" />
                                            <Columns>
                                                <custom:CustomClientSelectColumn UniqueName="ClientSelectColumn">
                                                    <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <FilterTemplate> 
                                                        <asp:LinkButton ID="clearFilter" runat="server" ToolTip="ยกเลิกการค้นหา" OnClick="clearFilter_Click">
                                                            <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />
                                                        </asp:LinkButton>
                                                    </FilterTemplate> 
                                                </custom:CustomClientSelectColumn>
                                                <telerik:GridBoundColumn DataField="Amount_show"
                                                    GroupByExpression="Amount_show Group By Amount_show" Groupable="true" Visible="false"
                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                    FilterControlWidth="100%" HeaderText="วงเงินการจัดหา" 
                                                    UniqueName="Amount_show" >
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Left" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="InfoFunction.Name" sortexpression="InfoFunction.Seq"
                                                    GroupByExpression="InfoFunction.Name Group By InfoFunction.Seq" Groupable="true" Visible="false"
                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                    FilterControlWidth="100%" HeaderText="หน้าที่" 
                                                    UniqueName="InfoFunction.Name" >
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Left" />
                                                </telerik:GridBoundColumn>
                                                <%--<telerik:GridBoundColumn DataField="InfoFunction.Seq" 
                                                    HeaderText="InfoFunction.Seq" UniqueName="InfoFunction.Seq"
                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                    CurrentFilterFunction="Contains"  Visible="false" >
                                                </telerik:GridBoundColumn>--%>
                                                <telerik:GridBoundColumn DataField="InfoPosition.Name" 
                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                    FilterControlWidth="100%"
                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ตำแหน่ง" 
                                                    UniqueName="InfoPosition.Name">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Left" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Seq" 
                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                    Visible="false">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="InfoFunction.Seq" 
                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="InfoFunction.Seq" 
                                                    Visible="false">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="InfoRecord.InfoStatus.Status" 
                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="InfoRecord.InfoStatus.Status" Visible="false">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings EnableRowHoverStyle="true" AllowDragToGroup="true">
                                            <Selecting AllowRowSelect="True" />
                                            <ClientEvents OnRowDblClick="RowDbClick" />
                                        </ClientSettings>
                                    </telerik:RadGrid>
                                </div>
                                <br />
                            </asp:Panel>
                        </div>
                    </div>
                </asp:Panel>
            </asp:Panel>
        </telerik:RadPane>
    </telerik:RadSplitter>
</asp:Content>
